package com.welearn.xdstudentmanagement.service;

import com.welearn.xdstudentmanagement.entity.Admin;
import com.welearn.xdstudentmanagement.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminService {
    @Autowired
    AdminMapper adminMapper;

    public List<Admin> selectAdmin(String name, String pwd) {
        return adminMapper.selectAdmin(name, pwd);
    }
    public List<Admin> selectAllAdmin(){
        return adminMapper.selectAll();
    }
}
